import MM from "../util/mm.jsx";
import { HOST } from "../constants.js";
const _mm = new MM();

function postOrder(user_name, user_tel, user_sex, productions, notes) {
    return _mm.request({
        type: "post",
        url: `${HOST}/orders`,
        contentType: "application/json",
        data: JSON.stringify({user_name, user_tel, user_sex, productions, notes})
    })
}

export default {
    postOrder
}